//
//  MainObject.h
//  pa
//
//  Created by HaiJiao Chen on 12-7-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KXTimer.h"
#import "ListController.h"

#define TOAL_TIME_LABEL 6

@class TicketList;
@class TicketView;
@class TicketListController;
@class ASIHTTPRequest;
@class CHJAlertView;
@class TimeButton;
@interface MainObject : NSObject <ListControllerDelegate,HttpRequestDelegate>
{
    TimeButton* btn_time;
    KXTimer* timer;
    TicketView* ticketView;
    TicketListController* ticketListController;
    CHJAlertView* waittingAlertView;
    UILabel* times[6];
    NSString* str_time_keys[6];
    NSString* c_time_keys[6];
}
@property (nonatomic, readonly) TicketList* ticketsDataSource;

@property (nonatomic, retain) IBOutlet UIButton* backButton;
@property (nonatomic, retain) IBOutlet UIView* view;
@property (nonatomic, retain) IBOutlet UITableView* list;
@property (nonatomic, retain) IBOutlet UIView* bottom;
@property (nonatomic, retain) IBOutlet UIButton* btn_go;
@property (nonatomic, retain) NSString* term;
@property (nonatomic, readonly) TicketView* ticketView;

-(IBAction)scheduled_ticket:(id)sender;
-(IBAction)scheduled_ticket_back:(id)sender;
-(IBAction)modify_ticket:(id)sender;
-(IBAction)lock:(id)sender;
-(IBAction)go:(id)sender;
-(IBAction)sign_ticket:(id)sender;
-(IBAction)submit:(id)sender;
-(void)submitWithDeleteTicket:(BOOL)bDelete;
-(IBAction)logout:(id)sender;

-(IBAction)showTicket:(id)sender;
-(IBAction)showMap:(id)sender;
@end
